import request from "@/utils/request";

// 查询所有轮播图
export function getWallpaper(){
  return request({
    url:'/massage/cms/info/listAll',
    method:'get'
  })
}
// 添加轮播图
export function addWallpaper(data){
  return request({
    url:'/massage/cms/info',
    method: 'post',
    data
  })
}
// 修改轮播图
export function updateWallpaper(id,data){
  return request({
    url:'/massage/cms/info/' + id,
    method:'put',
    data
  })
}
// 删除轮播图
export function deleteWallpaper(id){
  return request({
    url:'/massage/cms/info/' + id,
    method: 'delete'
  })
}
